<template>
  <div>
    <!-- the Nvar -->
    <van-sticky>
      <van-nav-bar title="医废袋信息" left-arrow @click-left="onClickLeft" />
    </van-sticky>
    <!-- the title -->
    <div class="content">
      <span class="the-title">XX医院医疗废弃物记录表</span>
      <!-- the cell people Info -->
      <div class="cell-people-info">
        <span>收集人工号：LS20142037</span>
        <span>收集人姓名：李四</span>
      </div>

      <!-- the main Info  -->
      <div class="info-div">
        <div class="info-display" v-for="(item, index) in InfoList" :key="index">
          <span>{{ item.ques }}</span>
          <span>{{ item.info }}</span>
        </div>

        <!-- the waste kids and number -->
        <div class="info-display1">
          <span>废弃物种类以及重量</span>
          <div>
            <span>感染性废物</span>
            <br />
            <span>30kg</span>
          </div>
        </div>
        <div class="info-display">
          <span>称重时间</span>
          <span>2020年8月21日 09:58</span>
        </div>
      </div>

      <div style="width:100vw;text-align:center;margin-top:20px">
        <van-image
          width="10rem"
          height="10rem"
          fit="contain"
          :src="require('@/assets/imgs/scanCode.png')"
        />
      </div>
    </div>
  </div>
</template>

<script>
// import { Dialog } from "vant";
export default {
  name: "generateScanCode",
  data() {
    return {
      InfoList: [
        {
          ques: "科室名称",
          info: "XX科室",
        },
        {
          ques: "科室代码",
          info: "XX123456",
        },
        {
          ques: "科室位置",
          info: "XX医院XX楼XX层XX科室XX号",
        },
        {
          ques: "科室扫码时间",
          info: "2020年8月21日 11:51",
        },
        {
          ques: "交接人姓名",
          info: "张三",
        },
        {
          ques: "交接人职位",
          info: "XX职位",
        },
        {
          ques: "联系方式",
          info: "15883723040",
        },
        {
          ques: "负责人扫码时间",
          info: "2020年8月21日 11:51",
        },
      ],
    };
  },
  methods: {
    onClickLeft() {
      this.$router.go(-1);
    },
  },
};
</script>

<style lang="less" scoped>
.content {
  width: 100vw;
  color: #606266;
  & .the-title {
    display: block;
    width: 100vw;
    text-align: center;
    color: #606266;
    font-size: 18px;
    margin-top: 10px;
    margin-bottom: 10px;
  }
  & .cell-people-info {
    display: flex;
    justify-content: space-around;
    margin: 20px;
    & span {
      font-size: 14px;
      text-align: start;
      color: #333333;
    }
  }
  & .info-div {
    display: flex;
    flex-direction: column;
    padding: 12px;
    & .info-display {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-top: 10px;
      & span:nth-last-child(1) {
        color: #000000;
      }
    }

    & .info-display1 {
      display: flex;
      justify-content: space-between;
      margin-top: 10px;
      & div span {
        color: #000000;
        height: 40px;
        width: 43vw;
        line-height: 40px;
        display: block;
        border-bottom: 1px solid #909399;
      }
    }
  }
}
</style>
